// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  css: ["~/assets/css/main.css"],
  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  },
  modules: ["nuxt-icon", "dayjs-nuxt"],
  dayjs: {
    // locales: ['en', 'fr'],
    // plugins: ['relativeTime', 'utc', 'timezone'],
    defaultLocale: "zh-cn",
  },
  // ssr: false,
  runtimeConfig: {
    public: {
      apiUrl: process.env.API_URL,
      visitUrl: process.env.VISIT_URL,
      hCaptchaSiteKey: process.env.HCAPTCHA_SITE_KEY,
    },
  },
});
